package com.csxh.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

public class Role implements Serializable {
   

	private static final long serialVersionUID = 3690197650654049848L;
    private Long id;
    private String name;
    private String text;
    private String tooltip;
    private Set<User> users=new LinkedHashSet<User>();

    /**
     * Default constructor - creates a new instance with no values set.
     */
    public Role() {
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getTooltip() {
		return tooltip;
	}

	public void setTooltip(String tooltip) {
		this.tooltip = tooltip;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", text=" + text + ", tooltip=" + tooltip + ", users=" + users
				+ "]";
	}

	
    
}
